import request from '/@/utils/request';

//查询案件
export async function queryCase(params?: object) {
	return await request({
		url: 'query/queryCase',
		method: 'post',
		data: params,
	});
}

//查询物品
export async function queryEvidence(params?: object) {
	return await request({
		url: 'query/queryEvidence',
		method: 'post',
		data: params,
	});
}

//物品硕源查询
export async function querySource(params?: object) {
	return await request({
		url: `query/querySource`,
		method: 'post',
		data: params,
	});
}

//选中物品后硕源记录更换
export async function querySourceByEveidenceNo(eveidenceNo, organId) {
	return await request({
		url: `party/${eveidenceNo}/${organId}/querySource`,
		method: 'get',
	});
}

//一键查询
export async function queryInfo(key, page, pageSize) {
	return await request({
		url: `query/${page}/${pageSize}/QueryInfo/${key}`,
		method: 'get',
	});
}
